//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\AbstractChargeItemDO.java

package com.ce.pms.renovation.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:抽象装修收费项目 关联数据表:RM_CHARGE_ITEM
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_CHARGE_ITEM")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "CHARGE_ITEM_TYPE", discriminatorType = DiscriminatorType.STRING)
public abstract class AbstractChargeItemDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "CHARGE_ITEM_ID")
	private Long keyword;

	/**
	 * 费用状态 001-未收，002-免收，003-已收，004-已退
	 */
	@Column(name = "FEE_STATE", nullable = false, length = 3)
	private String feeState;

	/**
	 * 金额
	 */
	@Column(name = "SUM", precision = 12, scale = 2)
	private BigDecimal sum = new BigDecimal(0.00);

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 100)
	private String remark;



	/**
	 * @roseuid 4941D91201A5
	 */
	public AbstractChargeItemDO() {

	}

	public AbstractChargeItemDO(Long keyword) {
		super();
		this.keyword = keyword;
	}


	/**
	 * 功能描述:  费用计算<br>
	 * @return
	 * Create author:yandawei <br>
	 * Create on:2008-12-25  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public abstract BigDecimal calculateFee();

	public String getFeeState() {
		return feeState;
	}

	public void setFeeState(String feeState) {
		this.feeState = feeState;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}

}
